// 报名礼包相关接口
import https from '@/plugins/luch-request_0.0.7/request'

/** 首页 */
// 限时秒杀
export const getSeckillList = data => {
	return https.get('/apihkds/api/active/seckill', data)
}

// 优惠券列表
export const getCouponsList = data => {
	return https.get('/apihkds/api/active/coupons', data)
}

// 优惠券领取
export const couponReceive = data => {
	return https.post('/api/v4/coupon/receive', data)
}

// 建材火拼
export const getActiveFire = data => {
	return https.get('/apihkds/api/active/fire-team', data)
}

// 建材首页
export const getMaterialIndex = data => {
	return https.get('/apihkds/api/material/index', data)
}

/** 商品管理 */
// 商品管理列表
export const getGoodsList = data => {
	return https.get('/apihkds/api/shop-goods/my-list', data)
}

// 商品管理-上下架
export const setSaleStatus = data => {
	return https.post('/apihkds/api/shop-goods/sale-status', data)
}

// 商品管理-删除
export const delGoods = data => {
	return https.post('/apihkds/api/shop-goods/delete', data)
}

// 数据统计
export const goodsStatistics = data => {
	return https.get('/apihkds/api/order-data-analysis/shop-goods', data)
}

// 代销商品
export const getLibGoodsList = data => {
	return https.get('/apihkds/api/shop-goods/goods-lib', data)
}

// 代销商品-添加
export const addLibGood = data => {
	return https.post('/apihkds/api/shop-goods/goods-lib', data)
}

// 商品-分享
export const goodShare = data => {
	return https.post('/api/v4/goods/shareposter', data)
}
